﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GalleryMenuUC.ascx.cs"
    Inherits="VCN.home.UC.GalleryMenuUC" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page Title</title>
<link rel="stylesheet" href="../Style/Menu_doc.css" type="text/css" media="screen"
    charset="utf-8" />

<script type="text/javascript" src="../js/jquery.min.js"></script>

<script type="text/javascript">
        $(document).ready(function() {
            $('a.tab_gallery').click(function(){
                $('.active').removeClass('active');
                $(this).addClass('active');
            });
        });
</script>

<div id="menu_gallery" class="menu_gallery">
    <div id="title_gallery">
        <div id="image_gallery">
            <img src="../home/Images/logo-gallery.png" width="27" height="27" style="padding-left: 20px;
                padding-top: 12px;" />
        </div>
        <span style="padding-bottom: 3px">Gallery</span>
    </div>
    <div class="tabbed_gallery">
        <ul class="tabs_gallery">
            <%           VCN.App.DataAccessLayer.CategoriesDAO v_CategoryDAO = new VCN.App.DataAccessLayer.CategoriesDAO();
                         System.Data.DataTable v_dt = v_CategoryDAO.selectAll2Dt();
                         int m_MenuNameCount = v_dt.Rows.Count;
                         for (int i = 0; i < m_MenuNameCount; i++)
                         {
                             //Response.Write(string.Format("<li><a class='tab_gallery' href=''>"));
                             Response.Write(string.Concat("<li><a class='tab_gallery' href='Gallery.aspx?id=", v_dt.Rows[i]["ID"].ToString(), "'>"));
                             Response.Write(string.Format(v_dt.Rows[i]["CATEGORY_NAME"].ToString()));
                             Response.Write(string.Format("</a></li>"));
                         } %>
        </ul>
    </div>
</div>
<!--end .tabbed_area-->
<p>
    &nbsp;</p>
